package com.library.repository;

import com.library.entity.Borrow;

import java.util.List;

public interface BorrowRepository {
    void Insert(Integer bookId, Integer readerId, String borrowTime, String returnTime, Integer adminId, Integer state);
    List<Borrow> findAllByReaderID(Integer id,Integer index,Integer limit);
    int countByReaderId(Integer id);
    List<Borrow> findAllByState(Integer state,Integer index,Integer limit);
    int countByState(Integer state);
}
